.ct-dialog_wrapper {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow: auto;
  margin: 0;
  z-index: 2025;
  background-color: rgba($color: #000000, $alpha: 0.5);
  .ct-dialog {
    position: absolute;
    background: var(--ct-color-white);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 1px 3px var(--ct-border-color-light);
    box-sizing: border-box;
    width: 30%;

    &_header {
      padding: 20px 20px 10px;
    }

    &_title {
      line-height: 24px;
      font-size: 18px;
      color: var(--ct-text-color-primary);
    }

    &_headerbtn {
      position: absolute;
      top: 20px;
      right: 20px;
      padding: 0;
      background: transparent;
      border: none;
      outline: none;
      cursor: pointer;
      font-size: 16px;

      .ct-icon-close {
        color: var(--ct-text-color-secondary);
      }
    }

    &_body {
      padding: 30px 20px;
      color: var(--ct-text-color-regular);
      font-size: 14px;
      word-break: break-all;
    }

    &_footer {
      padding: 10px 20px 20px;
      text-align: right;
      box-sizing: border-box;

      .ct-button {
        margin-right: 20px;
      }
    }
  }
}

.dialog-fade-enter-active {
  animation: fade 0.8s;
}

.dialog-fade-leave-active {
  animation: fade 0.4s reverse;
}

@keyframes fade {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
